[#import "/framework/JGP.htm"  as JGP]
<!--
项目   jgp-cloud-parent
作者   LOUFEI [Gavin]
时间   2018/12/4
-->
[@JGP.head "已办任务"/]
[@JGP.body]
     <jgp-grid  _url="/workflow/processApiController/queryCompletedTask?userId=${userId!'null'}"
               _record_tools="[{'icon':'edit','tip':'执行列表','fn':'listTaskFlowed'},{'icon':'edit','tip':'查看流程图','fn':'showProcessPic'}]">
         <jgp-grid-col _name="sn" _underline="true" _fns="['listTaskFlowed']" ></jgp-grid-col>
     </jgp-grid>
[/@JGP.body]

[@JGP.foot]
    <script>
        function showProcessPic(data){
            var procId = data.back.record.procId;
            var config = {
                title:'流程图',
                url:'/workflow/processController/showProcessPic/'+procId
            };
            JGP.$dialog(config);
        }

        function listTaskFlowed(data) {
            var config = {
                url:'/workflow/processController/listTaskFlowed?procId='+data.back.record.procId,
                title:'执行列表'
            }
            JGP.$dialog(config);
        }
    </script>
[/@JGP.foot]